import { useEffect, useState } from 'react'
import { role_list, auth_search } from '../utils/api';
export function useAuthregister() {
    var [roleid, setRoleid] = useState([]);
    useEffect(() => {
        role_list().then((res) => {
            setRoleid(res.data.list)
        });
    }, [])
    return [roleid, setRoleid];
}

